package com.liujian.esapi.service;

import com.liujian.esapi.entity.Policy;
import com.liujian.esapi.mapper.PolicyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PolicyServiceImpl {

    @Autowired
    private PolicyMapper policyMapper;

    public List<Policy> queryAll(){
        return policyMapper.selectList(null);
    }

    public Policy queryOne(Integer id){
        return policyMapper.selectById(id);
    }
}
